import request from '@/utils/request'

// 查询药品库存量列表
export function listInven(query) {
  return request({
    url: '/inventory/inven/list',
    method: 'get',
    params: query
  })
}

// 查询药品库存量详细
export function getInven(inventoryId) {
  return request({
    url: '/inventory/inven/' + inventoryId,
    method: 'get'
  })
}

// 新增药品库存量
export function addInven(data) {
  return request({
    url: '/inventory/inven',
    method: 'post',
    data: data
  })
}

// 修改药品库存量
export function updateInven(data) {
  return request({
    url: '/inventory/inven',
    method: 'put',
    data: data
  })
}

// 删除药品库存量
export function delInven(inventoryId) {
  return request({
    url: '/inventory/inven/' + inventoryId,
    method: 'delete'
  })
}
